//
//  UIButton+Tap.h
//  Express
//
//  Created by lhongl on 2025/9/26.
//  Copyright © 2025 QM. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^buttonActionCallBack)(UIButton *button);

@interface UIButton (Tap)

/// 添加button点击事件
/// - Parameter callBack: 回调
/// 注意:【循环引用注意】
- (void)addButtonActionCallBack:(buttonActionCallBack)callBack;


/// 添加button点击事件
/// - Parameters:
///   - callBack: 回调
///   - controlEvents: 点击状态
/// 注意:【循环引用注意】
- (void)addButtonActionCallBack:(buttonActionCallBack)callBack forControlEvents:(UIControlEvents)controlEvents;


/// 添加事件
/// - Parameter action: 事件
- (void)addButtonTarget:(nullable id)target action:(SEL)action;


@end

NS_ASSUME_NONNULL_END
